<style>
	.editCategorys
	{
		width: 400px;
		height: 200px;
		margin: 40px auto;
	}

	.editCategoryForm
	{
		background-color: #1874CD;
		border-left: 5px solid  #00688B;
		border-right: 5px solid  #00688B;
	}
	
	.editCategoryFormName
	{
		background-color: #00688B;
		color: #7EC0EE;
		text-align: center;
		height: 35px;
	}
	
	.editCategoryFormFooter
	{
		background-color: #00688B;
		height: 25px;
		color: white;
	}
	
</style>

<?if(isset($categorys)):?>

<div class="editCategorys">

<table width="400" cellspacing="0" cellpadding="0" class="editCategoryForm">
	<tr class="editCategoryFormName">
		<th colspan="2">Редагувати категорії</th>
	</tr>
<?foreach($categorys as $category):?>
<form action="" method="post" class="">
	<tr>
		<td>
			<input type="text" value="<?=$category['name']?>" name="categoryName">
			<input type="hidden" value="<?=$category['id']?>" name="categoryId">
		</td>
		<td><input type="submit" value="Зберегти"></td>
	</tr>
	</form>
<?endforeach?>
		
	<tr class="editCategoryFormFooter">
		<td colspan="2"></td>
	</tr>
</table>
</div>

<?endif?>